package com.ruoze.bdp.service;

import com.ruoze.bdp.entity.DataSourceEntity;
import com.ruoze.bdp.entity.DataSourceVo;
import com.ruoze.bdp.entity.datasource.DataSourceClusterVo;
import com.ruoze.bdp.entity.datasource.DataSourceRequest;
import org.springframework.data.domain.Page;

import java.util.List;


public interface DataSourceService {
    Page<DataSourceClusterVo> queryPage(DataSourceRequest dataSourceRequest);

    void createNewDataSource(DataSourceVo newDataSource);

    void replaceNewDataSource(DataSourceVo newDataSource, long id);

    void logicalDelDataSource(long id);

    void logicalBatchDelDataSource(List<Long> idList);

    boolean connectTest(String type, String connectInfo);

    List<String> queryNamesByType(String type);

}
